<?php

namespace app\model;

use think\Model;

class Spec extends Model
{
    protected $autoWriteTimestamp = true;

    public function getStatusAttr($value)
    {
        $status = [0=>'启用',1=>'未启用'];
        return $status[$value];
    }
}

